public class mission4 {
    double[] array = new double[10];
    void print_array(){
        System.out.println("数组的当前值为：");
        for(int i=0;i<array.length;i++){
            System.out.println(array[i]);
        }
        System.out.println("-----------------------------");
    }
    void get_array_num(){
        for (int i=0;i<array.length;i++){
            array[i]+=i*2;
        }
        print_array();
    }
}
